<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

   
    <div class="form-group tpmecms-username">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" disabled class="form-control" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <!-- name="row[username]"  -->

    <div class="form-group tpmecms-nickname">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group tpmecms-password">
        <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" class="form-control" name="row[password]" type="text" placeholder="不填不修改密码" value="">
        </div>
    </div>

    <div class="form-group tpmecms-avatar">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>

    <div class="form-group tpmecms-birthday">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">
        </div>
    </div>
    <div class="form-group tpmecms-bio">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bio" class="form-control" name="row[bio]" type="text" value="{$row.bio|htmlentities}">
        </div>
    </div>

    <!-- <div class="form-group tpmecms-school_id">
        <label class="control-label col-xs-12 col-sm-2">{:__('School_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school_id" data-rule="required" data-source="school/index" class="form-control selectpage" name="row[school_id]" type="text" value="{$row.school_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group tpmecms-sex">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-sex" class="form-control selectpicker" name="row[sex]">
                {foreach name="sexList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.sex"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <!-- <div class="form-group tpmecms-character_ids">
        <label class="control-label col-xs-12 col-sm-2">{:__('Character_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-character_ids" data-rule="required" data-source="character/index" data-multiple="true" class="form-control selectpage" name="row[character_ids]" type="text" value="{$row.character_ids|htmlentities}">
        </div>
    </div>-->
    <div class="form-group tpmecms-fans">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fans')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fans" min="0" disabled class="form-control" name="row[fans]" type="number" value="{$row.fans|htmlentities}">
        </div>
    </div> 
    <!-- <div class="form-group tpmecms-chsi_code">
        <label class="control-label col-xs-12 col-sm-2">{:__('Chsi_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chsi_code" class="form-control" name="row[chsi_code]" type="text" value="{$row.chsi_code|htmlentities}">
        </div>
    </div>
    <div class="form-group tpmecms-verify_status">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="verifyStatusList" item="vo"}
            <label for="row[verify_status]-{$key}"><input id="row[verify_status]-{$key}" name="row[verify_status]" type="radio" value="{$key}" {in name="key" value="$row.verify_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div> -->
    <!-- <div class="form-group tpmecms-images">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group tpmecms-match_ids">
        <label class="control-label col-xs-12 col-sm-2">{:__('Match_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-match_ids" data-rule="required" data-source="match/index" data-multiple="true" class="form-control selectpage" name="row[match_ids]" type="text" value="{$row.match_ids|htmlentities}">
        </div>
    </div> -->
<!--    
    <div class="form-group tpmecms-sys_status">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sys_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="sysStatusList" item="vo"}
            <label for="row[sys_status]-{$key}"><input id="row[sys_status]-{$key}" name="row[sys_status]" type="radio" value="{$key}" {in name="key" value="$row.sys_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div> -->
    <!-- <div class="form-group tpmecms-match_switch">
        <label class="control-label col-xs-12 col-sm-2">{:__('Match_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-match_switch" min="0" class="form-control" name="row[match_switch]" type="number" value="{$row.match_switch|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
